﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="SelectGroupToAssign.aspx.cs" Inherits="SARS.Course.Group.SelectGroupToAssign" %>
<%@ Register TagPrefix="uc" TagName="ProgramCourse" Src="~/UserControl/UcProgramCourse.ascx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h1 id="lblHeading" class="heading1Title">
        <b>Assign Student Into GROUP</b>
    </h1>
    <uc:ProgramCourse ID="ucProgramCourse" runat="server" 
                      OnSelectedCourseChanged="ucProgramCourse_OnSelectedCourseChanged" />
    <asp:UpdatePanel ID="AssignStudentUpdatePanel" runat="server">
        <ContentTemplate>
            <asp:Panel ID="Panel1" runat="server" Direction="LeftToRight">
                <table class="style1">
                    <tr>
                        <td class="leftLabel" />
                        <td>
                        </td>
                    </tr>
                </table>
                <asp:GridView ID="gvGroupList" runat="server" AutoGenerateColumns="False" CellPadding="4"
                              ForeColor="#333333" GridLines="None" AllowPaging="True" AllowSorting="True"
                              Width="650px" DataKeyNames="GroupID" 
                              EmptyDataText="There is no group in this course, please select other course." >
                    <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                    <Columns>
                        <asp:BoundField DataField="GroupID" HeaderText="ID" >
                            <HeaderStyle HorizontalAlign="Left" Width="100"></HeaderStyle>
                            <ItemStyle HorizontalAlign="Left" Width="100"></ItemStyle>
                        </asp:BoundField>
                        <asp:BoundField DataField="GroupName" HeaderText="Group Name">
                            <HeaderStyle HorizontalAlign="Left"></HeaderStyle>
                            <ItemStyle Width="200" Wrap="True" ></ItemStyle>
                        </asp:BoundField>
                        <asp:BoundField DataField="GroupTutorialNames" HeaderText="Tutors">
                            <HeaderStyle HorizontalAlign="Left"></HeaderStyle>
                            <ItemStyle Wrap="True" ></ItemStyle>
                        </asp:BoundField>
                        <asp:TemplateField HeaderText="">
                            <ItemTemplate>
                                <asp:LinkButton runat="server" OnClick="OnClick" Text="Select"></asp:LinkButton>
                                <asp:LinkButton ID="btnDetail" runat="server" OnClick="Detail_OnClick" Text="Detail"></asp:LinkButton>
                            </ItemTemplate>
                            <ItemStyle Width="80"></ItemStyle>
                        </asp:TemplateField>
                    </Columns>
                    <EditRowStyle BackColor="#999999" />
                    <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                    <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                    <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                    <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                    <SortedAscendingCellStyle BackColor="#E9E7E2" />
                    <SortedAscendingHeaderStyle BackColor="#506C8C" />
                    <SortedDescendingCellStyle BackColor="#FFFDF8" />
                    <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
                </asp:GridView>
            </asp:Panel>
            <br>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>